package com.cq.hd.member.api.vo;

import com.cq.hd.common.serialize.Decimal2Serializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class MyBusinessPageVo implements Serializable {

    @ApiModelProperty(value = "商家ID")
    private Long businessId;

    @ApiModelProperty(value = "商家名称")
    private String businessName;

    @ApiModelProperty(value = "商家简称")
    private String businessShortName;

    @ApiModelProperty(value = "商家logo")
    private String logo;

    @ApiModelProperty(value = "结算的订单佣金总额")
    @JsonSerialize(using = Decimal2Serializer.class)
    private BigDecimal totalSettleCommission;

    @ApiModelProperty(value = "累计分销订单数")
    private Integer totalOrderCount;

    @ApiModelProperty(value = "累计分销订单金额")
    @JsonSerialize(using = Decimal2Serializer.class)
    private BigDecimal totalOrderAmt;

    @ApiModelProperty(value = "加入时间")
    private LocalDateTime createTime;
}
